課程名稱 |
計算機程式 Computer Programming |
開課學期 |
100-2 |
授課對象 |
工學院 土木工程學系 |
授課教師 |
陳柏華 |
課號 |
CIE1008 |
課程識別碼 |
501 10800 |
班次 |
|
學分 |
3 |
全/半年 |
半年 |
必/選修 |
必修 |
上課時間 |
星期一2,3,4(9:10~12:10) |
上課地點 |
|
備註 |
課後一小時練習。上課教室:工綜323室 限本系所學生(含輔系、雙修生) 總人數上限:40人 |
Ceiba 課程網頁 |
http://ceiba.ntu.edu.tw/1002dmce |
課程簡介影片 |
|
核心能力關聯 |
核心能力與課程規劃關聯圖 |
課程大綱
|
為確保您我的權利,請尊重智慧財產權及不得非法影印
|
課程概述 |
TEACHING THE BASICS OF C++ PROGRAMMING AND THE APPLICATIONS IN ENGINEERING PROBLEMS. |
課程目標 |
認識C++電腦程式語言並學習如何經由基本電腦程式語言之邏輯解決工程問題.
課程內容包含C++程式語言的語法與運算子, 資料儲存型態(data type)與資料之輸入與輸出(I/O), 迴圈(loop), 定義與使用函式(function), 陣列(array), 字串(string), structure, 檔案(file), 指標(pointer), 及類別(class)的運用. |
課程要求 |
來上課
課程資訊閱讀
作業及程式實作
期中考
期末考 |
預期每週課後學習時數 |
|
Office Hours |
|
指定閱讀 |
|
參考書目 |
教科書:
1. Problem Solving, Abstraction, and Design Using C++, 6th Edition, F. L. Friedman and E. B. Koffman, Pearson
參考書:
1. Hennefeld, J., L. Baker, and C. Burchard (2003). Using C++: An Introduction to
Programming, 2nd Ed., Brooks/Cole Publishing Company, Pacific Grove, CA, U.S.A.
2. Stroustrup, B. (1991). The C++ Programming Language, 2nd Ed., Addison-
Wesley Publishing Company, New York, U.S.A.
3. Whale, G. (1996). Data Structures and Abstraction Using C,
International Thomson Publishing Companies, Australia.
4. Kernighan, B. W., and D. M. Ritchie (1988). The C Programming
Language, Second Edition, Prentice Hall, Englewood Cliffs, NJ, U.S.A.
|
評量方式 (僅供參考) |
|
週次 |
日期 |
單元主題 |
第1週 |
2/20 |
Introduction to the Course |
第2週 |
2/27 |
Holiday |
第3週 |
3/05 |
Functions, Comments, #include and namespace, Variables and Arithmetic Types, Assignments and Execution Sequence, Interactive Input, and Repetition
|
第4週 |
3/12 |
Data Types, Numerical Operators, Arithmetic Assignment, Named Constants, Logical Operators, Conditional Statements, Repetition and Selection |
第5週 |
3/19 |
Functions,
Homework 1 due |
第6週 |
3/26 |
More functions, string type, character escape sequence, stream files, output formatting. Homework 2 due |
第7週 |
4/02 |
Midterm, Homework 3 due |
第8週 |
4/09 |
Post Midterm I Review. More on Loops. Reference. |
第9週 |
4/16 |
Default Arguments of Functions, Function Overload, Recursion |
第10週 |
4/23 |
file input, switch statement, enumeration |
第11週 |
4/30 |
Array |
第12週 |
5/07 |
Midterm 2 |
第13週 |
5/14 |
Vector |
第14週 |
5/21 |
More Vector & Struct |
第15週 |
5/28 |
Class I |
第16週 |
6/04 |
Class II |
第17週 |
6/11 |
Special Topic |
第18週 |
06/18 |
Final Exam |
|